import request from '@/utils/request'

// 查询专项治理列表
export function listGovernance(query) {
  return request({
    url: '/town/governance/list',
    method: 'get',
    params: query
  })
}

// 查询专项治理详细
export function getGovernance(id) {
  return request({
    url: '/town/governance/' + id,
    method: 'get'
  })
}

// 新增专项治理
export function addGovernance(data) {
  return request({
    url: '/town/governance',
    method: 'post',
    data: data
  })
}

// 修改专项治理
export function updateGovernance(data) {
  return request({
    url: '/town/governance',
    method: 'put',
    data: data
  })
}

// 删除专项治理
export function delGovernance(id) {
  return request({
    url: '/town/governance/' + id,
    method: 'delete'
  })
}
